import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class B {
    public void write(String data){
        try ( FileOutputStream fos = new FileOutputStream(A.TMP)) {
            byte[] dataBytes = data.getBytes();
            fos.write(dataBytes,0,dataBytes.length);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
